<template>
	<view class="classLayout pageBg">
		<custom-nav-bar title="分类"></custom-nav-bar>
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
	</view>
</template>
<script setup lang="ts">
	import { ref } from 'vue';
	import { apiGetClassify } from '@/api/apis';
	const classifyList = ref([])
	
	//列表
	const getClassifyList=async ()=>{
			const data = {pageSize:20}
			let res = await apiGetClassify(data);
			classifyList.value = res.data
	}
	
	getClassifyList()
</script>
<style scoped lang="scss">
	.classify{
		padding: 30rpx;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap:15rpx
	}
</style>
